Skip to content

feat(sconify): add sconify workflow#66

Merged
PierreJeanjacquot merged 9 commits intomainfrom
feat/sconify
Jul 1, 2025
Merged

feat(sconify): add sconify workflow#66
PierreJeanjacquot merged 9 commits intomainfrom
feat/sconify

Conversation

@PierreJeanjacquot
Copy link
Copy Markdown
Member

@PierreJeanjacquot PierreJeanjacquot commented Jun 24, 2025

This reusable GitHub Actions workflow automates the process of sconifying a Docker image. It is configurable via inputs for the Sconification options and secrets for docker registries credentials and production enclave signing key.

tests:


jobs:
sconify:
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/sconify.yml@sconify-v1.0.0
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: sconify-v1.0.0 tag does not exist yet, use feat/sconify instead to test from this branch

Copy link
Copy Markdown

@SeddikBellamine SeddikBellamine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments and a question

Comment on lines +126 to +142
docker run \
--rm \
-v /var/run/docker.sock:/var/run/docker.sock \
registry.scontain.com/scone-production/iexec-sconify-image:${{ inputs.sconify-version }} \
sconify_iexec \
--from=$FROM_IMAGE \
--to=$DEBUG_IMAGE \
--binary-fs \
--fs-dir=${{ inputs.fs-dir }} \
--host-path=/etc/hosts \
--host-path=/etc/resolv.conf \
--binary=${{ inputs.binary }} \
--heap=${{ inputs.heap }} \
--dlopen=${{ inputs.dlopen }} \
--no-color \
--verbose \
--command="${{ inputs.command }}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we use a script that would be more cleaner for code readability ?

Suggested change
docker run \
--rm \
-v /var/run/docker.sock:/var/run/docker.sock \
registry.scontain.com/scone-production/iexec-sconify-image:${{ inputs.sconify-version }} \
sconify_iexec \
--from=$FROM_IMAGE \
--to=$DEBUG_IMAGE \
--binary-fs \
--fs-dir=${{ inputs.fs-dir }} \
--host-path=/etc/hosts \
--host-path=/etc/resolv.conf \
--binary=${{ inputs.binary }} \
--heap=${{ inputs.heap }} \
--dlopen=${{ inputs.dlopen }} \
--no-color \
--verbose \
--command="${{ inputs.command }}"
./sconify.sh arg1 arg2 arg3

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to pass a lot of input to the command. IMO, moving the command in a script would add extra complexity and no better readability.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the command is now prepared in a previous step (still in this file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants